package creational.singleton;

/**
 * @Description: 懒汉式1
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class Singleton3 {
    private static Singleton3 instance;

    private Singleton3() {

    }

    public static Singleton3 getInstance() {
        if (instance == null) {
            instance = new Singleton3();
        }
        return instance;
    }
}
